package inherit.define.javaBean;

public class Test {
    public static void main(String[] args) {
        Manager mg = new Manager("007","小平" ,13000,8000);
        System.out.println(mg.getId() + "," + mg.getName()+"," +mg.getSalary()+","+mg.getBonus());
        mg.work();
        mg.eat();

        Cook ck = new Cook();
        ck.setId("007");
        ck.setName("神木通");
        ck.setSalary(20000);
        System.out.println(ck.getId()+","+ck.getName()+","+ck.getSalary());
        ck.work();
        ck.eat();
    }
}
